Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clippy to CI + address clippy problems #215

Merged
merged 4 commits into from
Apr 21, 2020
Merged

Conversation

elrnv
Copy link
Contributor

@elrnv elrnv commented Apr 21, 2020

This commit

  1. Adds cargo clippy to .travis.yml that is allowed to fail to reduce friction for incoming PRs.
  2. Addresses clippy concerns and clarifies places where they should be ignored.

Addresses half of #211

Copy link
Collaborator

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
bors r+

bors bot added a commit that referenced this pull request Apr 21, 2020
215: Add clippy to CI + address clippy problems r=kvark a=elrnv

This commit
1. Adds `cargo clippy` to .travis.yml that is allowed to fail to reduce friction for incoming PRs.
2. Addresses clippy concerns and clarifies places where they should be ignored.

Addresses half of #211

Co-authored-by: Egor Larionov <egor.larionov@gmail.com>
@elrnv
Copy link
Contributor Author

elrnv commented Apr 21, 2020

I think I had a rustup component add clippy missing here and same goes for #214. I updated both, hopefully this will satisfy the CI.

@kvark
Copy link
Collaborator

kvark commented Apr 21, 2020

Please rebase!

This commit
1. adds `cargo clippy` to .travis.yml
2. addresses clippy concerns and clarifies places where they should be ignored.
The issue was that the from_str implementation on Value was moved to the
FromStr trait as recommended by Clippy. This caused many of the tests to
fail since now the FromStr trait must be in scope. Instead of bringing
FromStr into scope everywhere, however, the `Value::from_str(_)` calls
were replaced with `_.parse()` calls as recommended by the std lib
documentation.
@elrnv
Copy link
Contributor Author

elrnv commented Apr 21, 2020

All done!

@kvark kvark merged commit 92c1d5d into ron-rs:master Apr 21, 2020
@elrnv elrnv deleted the clippy branch April 21, 2020 19:51
@elrnv elrnv mentioned this pull request Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants